package com.in.controller;

import com.in.dto.DictDto;
import com.in.service.InDictService;
import com.in.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description InDictController
 * @Author liulianjia
 * @Date 2025/6/12
 */
@RestController
@RequestMapping("/dict")
public class InDictController {

    @Autowired
    private InDictService inDictService;

    /**
     * 列表
     */
    @GetMapping("/list")
    public Result list(DictDto dto) {
        return Result.success(inDictService.list(dto));
    }
}
